/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upc.edu.alquiler.service;

import java.sql.SQLException;
import upc.edu.alquiler.dao.PersonaDao;
import upc.edu.alquiler.excepcion.DAOExcepcion;
import upc.edu.alquiler.model.Persona;

/**
 *
 * @author SONY
 */
public class PersonaService {
    
    
    public Persona consultarPersona(String email) throws DAOExcepcion, SQLException 
    {
        PersonaDao dao = new PersonaDao();
        Persona pe = new Persona();
        try 
        {
            pe = dao.consultar(email);
        }
        catch (DAOExcepcion e) 
        {
            throw e;
        }
        return pe;
    }
}
